# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=gnome-connections
pkgver=46.0
pkgrel=0
pkgdesc="Remote desktop client for the GNOME desktop environment"
url="https://apps.gnome.org/app/org.gnome.Connections"
arch="all"
license="GPL-3.0-or-later"
depends_doc="yelp"
makedepends="
	desktop-file-utils
	glib-dev
	gtk+3.0-dev
	gtk-frdp-dev
	gtk-vnc-dev
	itstool
	libhandy1-dev
	libsecret-dev
	libxml2-dev
	meson
	vala
	"
checkdepends="appstream-glib"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.gnome.org/GNOME/connections/-/archive/$pkgver/connections-$pkgver.tar.gz"
builddir="$srcdir/connections-$pkgver"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
81f8a42a63c27dd66c244acc406ea9b3a2ecc8b8fdfc06b355a7852ac1e30df2e83f1b29f2b0aead9463eefcb22886fdc33a7762322ef2251c484c9352775514  connections-46.0.tar.gz
"
